package entity;

import java.math.BigDecimal;

public class Employee {
    private Integer id;
    private String empName;
    private Boolean gender;
    private BigDecimal salary;
    private Integer deptid;

    private String test1;
    private String test2;

    private Dept dept;


    public Employee() {
        System.out.println("默认构造函数----");
    }

    public Employee(int id) {
        this.id = id;
        System.out.println("有int构造函数----");
    }

    public Employee(int id, String name) {
        this.id = id;
        this.empName = name;
        System.out.println("有int string构造函数----");
    }

    public Employee(Integer id, String empName, Boolean gender, BigDecimal salary, Integer detpid) {
        this.id = id;
        this.empName = empName;
        this.gender = gender;
        this.salary = salary;
        this.deptid = detpid;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String getTest1() {
        return test1;
    }

    public void setTest1(String test1) {
        this.test1 = test1;
    }

    public String getTest2() {
        return test2;
    }

    public void setTest2(String test2) {
        this.test2 = test2;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public Boolean getGender() {
        return gender;
    }

    public void setGender(Boolean gender) {
        this.gender = gender;
    }

    public BigDecimal getSalary() {
        return salary;
    }

    public void setSalary(BigDecimal salary) {
        this.salary = salary;
    }

    public Integer getDeptid() {
        return deptid;
    }

    public void setDeptid(Integer deptid) {
        this.deptid = deptid;
    }

    @Override
    public String toString() {
        return "entity.Employee{" +
                "id=" + id +
                ", empName='" + empName + '\'' +
                ", gender='" + gender + '\'' +
                ", salary=" + salary +
                ", deptid=" + deptid +
                ", test1='" + test1 + '\'' +
                ", test2='" + test2 + '\'' +
                '}';
    }
}
